/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pdfdataexplorer;

import java.io.File;
/**
 *
 * @author root
 */
public class php {
	public static void echo(String s) {
		System.out.println(s);
	}

	public static String dirname(String filename) {
		String o = "";
		String[] tokens = filename.split(File.separator);

		for(int i=0;i<tokens.length-2;i++) {
			o += tokens[i] + File.separator;
		}
		o += tokens[tokens.length-2];
		return o;
	}
	
}
